package com.fastCms.business.frame.daos;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fastCms.business.frame.pojo.entity.News;
import com.fastCms.business.frame.pojo.po.NewsQueryPO;
import com.fastCms.business.frame.pojo.vo.NewsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 新闻资讯 Mapper 接口
 * </p>
 *
 * @author quan
 * @since 2024-05-23
 */
@Mapper
public interface NewsMapper extends BaseMapper<News> {


    int countValidByCategoryId(@Param("id") String id);


    List<NewsVO> showList(NewsQueryPO newsQueryPO);

}
